package com.ocom.webapi.feign;

import com.ocom.common.constant.AiotUrl;
import com.ocom.common.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(value = "srvpamh")
public interface SrvpAmhClientService {
    //1.1. SaaS平台激活设备（SetDeviceActBySaas）
    @PostMapping(AiotUrl.Url_SetDeviceActBySaas)
    public Result SetDeviceActBySaas(@RequestBody Map<String,Object> map);

    //SaaS平台注销设备（SetDeviceUnActBySaas）
    @PostMapping(AiotUrl.Url_SetDeviceUnActBySaas)
    public Result SetDeviceUnActBySaas(@Validated  @RequestBody Map<String,Object> map);



}
